package com.ahzy.po;

import java.util.Date;

import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotBlank;

import org.springframework.format.annotation.DateTimeFormat;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;

// 用户
@Data
@Table(name = "user")
public class User {

	@Id
	private Integer id;

	private Integer number;

	private String password;

	private String name;

	private String department;

	private String major;

	private Integer type;
	
	private String phone;

	private String sex;

	private Integer age;

	private String remarks;

	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	private Date jointime;
	
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	private Date dateline;
}
